package ten;

/**
 * Created by ab on 2016/11/4.
 */

public class lesson4 {
    private class PContents implements Contents{
        private int i = 11;
        public int value(){return  i;}
    }
    protected class PDestination implements Destination{
        private String label;
        private PDestination(String whereTo){
            label=whereTo;
        }
        @Override
        public String readLine() {
            return label;
        }
        public Destination destination(String s){
            return new PDestination(s);
        }
        public Contents contents(){
            return new PContents();
        }
    }
}
